package com.ctgu.tengyun.dao.mybatis;

import com.ctgu.tengyun.domain.SparePartInfo;
import com.ctgu.tengyun.domain.SparePartInfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SparePartInfoMapper {
    int countByExample(SparePartInfoExample example);

    int insert(SparePartInfo record);

    int insertSelective(SparePartInfo record);

    List<SparePartInfo> selectByExample(SparePartInfoExample example);

    SparePartInfo selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") SparePartInfo record, @Param("example") SparePartInfoExample example);

    int updateByExample(@Param("record") SparePartInfo record, @Param("example") SparePartInfoExample example);

    int updateByPrimaryKeySelective(SparePartInfo record);

    int updateByPrimaryKey(SparePartInfo record);

    Long findMaxId();

    int reduceStock(@Param("id") Long id, @Param("reduceCount") Integer reduceCount);
}